import { post } from './index.js'
import { get } from './index.js'

// 获取轮播图数据
export const GettingRotating = (body) => {
  return get('/gettingRotating', body).then(res => res.data)
}

// 获取轮播图数据注释名字
export const GettingRotatingAnnotations = (body) => {
  return get('/gettingRotatingAnnotations', body).then(res => res.data)
}

// 添加轮播图
export const AddRotating = (body) => {
  return post('/addRotating', body).then(res => res.data)
}

// 修改轮播图
export const ChangeRotating = (body) => {
  return post('/changeRotating', body).then(res => res.data)
}
// 删除轮播图
export const DeleteRotating = (body) => {
  return post('/deleteRotating', body).then(res => res.data)
}

// 获取活动数据
export const GetEvent = (body) => {
  return get('/getEvent', body).then(res => res.data)
}

// 获取活动数据表名
export const GetEventAnnotations = (body) => {
  return get('/getEventAnnotations', body).then(res => res.data)
}

// 添加活动数据
export const AddEvent = (body) => {
  return post('/addEvent', body).then(res => res.data)
}


// 删除活动数据
export const DeleteEvent = (body) => {
  return post('/deleteEvent', body).then(res => res.data)
}

// 修改活动数据
export const ChangeEvent = (body) => {
  return post('/changeEvent', body).then(res => res.data)
}


// 获取公告数据
export const GetBulletin = (body) => {
  return get('/getBulletin', body).then(res => res.data)
}

// 获取公告数据表名
export const GetBulletinAnnotations = (body) => {
  return get('/getBulletinAnnotations', body).then(res => res.data)
}

// 添加公告数据
export const AddBulletin = (body) => {
  return post('/addBulletin', body).then(res => res.data)
}

// 删除公告数据
export const DeleteBulletin = (body) => {
  return post('/deleteBulletin', body).then(res => res.data)
}




